package com.javafactroy.kunlong.data.iface;



import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author leijmdas@163.com
 * @since 2021-08-08
 */
//@Mapper(componentModel = "spring")
public interface IentityConvert<DTO,E> {

    //IentityConvert INST = Mappers.getMapper(IentityConvert.class);

    DTO toOne(E one);

    List<DTO> toList(List<E> list);

    E fromOne(DTO one);

    List<E> fromList(List<DTO> list);


}
